package com.shr.lease.common.utils;

import java.util.Random;

/**
 * @author Haoran Sun
 * @since 2024/06/24
 */


public class VerifyCodeUtil {

    public static String generateVerifyCode(int len) {
        StringBuffer sb = new StringBuffer();
        Random random = new Random();
        for (int i = 0; i < len; i++) {
            sb.append(random.nextInt(10));
        }
        return sb.toString();
    }

}
